package com.business.system.bean;

import net.sf.rose.jdbc.bean.annotation.Column;
import net.sf.rose.jdbc.bean.annotation.Table;
import net.sf.rose.jdbc.bean.annotation.Type;

/**
 * @author: xudy
 * @date: 2018/04/07 16:30
 * @description:
 */
@Table(name = "ORDER_GOODS")
public class OrderGoodsBean {

	@Column(pk = true, name = "ID", type = Type.定长文本, description = "编号", canNull = false, size = 32, policy = "UUID")
	private String id;

	@Column(name = "GOODS_ID", type = Type.变长文本, description = "商品编号", size = 32)
	private String goodsId;

	@Column(name = "ORDERS_ID", type = Type.变长文本, description = "订单ID", size = 32)
	private String ordersId;

	@Column(name = "GOODS_SPEC", type = Type.变长文本, description = "商品规格", size = 32)
	private String goodsSpec;

	@Column(name = "SALE_PRICE", type = Type.数字双精度型, description = "单价")
	private double salePrice;

	@Column(name = "COUNTS", type = Type.数字整型, description = "采购数量", size = 11)
	private int counts;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getOrdersId() {
		return ordersId;
	}

	public void setOrdersId(String ordersId) {
		this.ordersId = ordersId;
	}

	public String getGoodsSpec() {
		return goodsSpec;
	}

	public void setGoodsSpec(String goodsSpec) {
		this.goodsSpec = goodsSpec;
	}

	public double getSalePrice() {
		return salePrice;
	}

	public void setSalePrice(double salePrice) {
		this.salePrice = salePrice;
	}

	public int getCounts() {
		return counts;
	}

	public void setCounts(int counts) {
		this.counts = counts;
	}
}